how to avoid sideways market